package com.caifu.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 微信用户 
 * </p>
 *
 * @author szt
 * @since 2020-09-06
 */
public class SysWechatUser extends Model<SysWechatUser> {

    private static final long serialVersionUID = 1L;

    /**
     * 创建人
     */
    @TableField("CREATE_BY")
    private Integer createBy;

    /**
     * 创建时间
     */
    @TableField("CREATE_TIME")
    private Date createTime;

    /**
     * 更新人
     */
    @TableField("UPDATE_BY")
    private Integer updateBy;

    /**
     * 更新时间
     */
    @TableField("UPDATE_TIME")
    private Date updateTime;

    /**
     * 用户编号
     */
    @TableId(value = "USER_NO", type = IdType.AUTO)
    private Integer userNo;

    /**
     * 微信唯一标识
     */
    @TableField("OPEN_ID")
    private String openId;

    /**
     * 微信头像
     */
    @TableField("HEAD_URL")
    private String headUrl;

    /**
     * 微信用户性别
     */
    @TableField("SEX")
    private String sex;

    /**
     * 微信昵称
     */
    @TableField("NICK_NAME")
    private String nickName;

    /**
     * 手机号
     */
    @TableField("PHONE")
    private String phone;

    /**
     * 类型
     */
    @TableField("USER_TYPE")
    private String userType;

    /**
     * 民生用户编号（如果用户是 居民类型，关联民生居民表的用户编号）
     */
    @TableField("MS_USER_NO")
    private String msUserNo;

    /**
     * 管理员编号（如果用户是 管理员类型，关联sys_user.user_no）
     */
    @TableField("SYS_USER_NO")
    private Integer sysUserNo;

    /**
     * 公益积分
     */
    @TableField("GY_POINT")
    private Integer gyPoint;

    public Integer getCreateBy() {
        return createBy;
    }

    public void setCreateBy(Integer createBy) {
        this.createBy = createBy;
    }
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    public Integer getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(Integer updateBy) {
        this.updateBy = updateBy;
    }
    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
    public Integer getUserNo() {
        return userNo;
    }

    public void setUserNo(Integer userNo) {
        this.userNo = userNo;
    }
    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }
    public String getHeadUrl() {
        return headUrl;
    }

    public void setHeadUrl(String headUrl) {
        this.headUrl = headUrl;
    }
    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }
    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }
    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }
    public String getUserType() {
        return userType;
    }

    public void setUserType(String userType) {
        this.userType = userType;
    }
    public String getMsUserNo() {
        return msUserNo;
    }

    public void setMsUserNo(String msUserNo) {
        this.msUserNo = msUserNo;
    }
    public Integer getSysUserNo() {
        return sysUserNo;
    }

    public void setSysUserNo(Integer sysUserNo) {
        this.sysUserNo = sysUserNo;
    }
    public Integer getGyPoint() {
        return gyPoint;
    }

    public void setGyPoint(Integer gyPoint) {
        this.gyPoint = gyPoint;
    }

    @Override
    protected Serializable pkVal() {
        return this.userNo;
    }

    @Override
    public String toString() {
        return "SysWechatUser{" +
        "createBy=" + createBy +
        ", createTime=" + createTime +
        ", updateBy=" + updateBy +
        ", updateTime=" + updateTime +
        ", userNo=" + userNo +
        ", openId=" + openId +
        ", headUrl=" + headUrl +
        ", sex=" + sex +
        ", nickName=" + nickName +
        ", phone=" + phone +
        ", userType=" + userType +
        ", msUserNo=" + msUserNo +
        ", sysUserNo=" + sysUserNo +
        ", gyPoint=" + gyPoint +
        "}";
    }
}
